<?php

namespace App\Http\Controllers\Admin;

use App\Exceptions\AppException;
use App\Http\Controllers\Admin\BaseController;
use App\Models\Member;
use Illuminate\Hashing\BcryptHasher;
use Illuminate\Http\Request;

class WebAuthController extends BaseController
{
    public function login(Request $request)
    {
//        $params = $request->all();
//        if (!isset($params['password'])){
//            throw new AppException('find_member_is_fail');
//        }
//
//        $member = Member::query()->where('password', $params['password'])->first();
//        if (!$member) throw new AppException('find_member_is_fail');
//
//        $member = $member->toArray();
//
//        $member['province'] = explode(',', $member['province_info']);
//        $member['rm'] = explode(',', $member['rm_info']);
//        $member['team'] = explode(',', $member['team_info']);
//        $member['dm'] = explode(',', $member['dm_info']);

        return $this->success([]);
    }

}
